home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Creative Computers
/
Creative Computers CD-ROM, Volume 1 (Legendary Design Technologies, Inc.)(1994).iso
/
commercial
/
inovatronics
/
edgedemo
/
edgeeditor
/
rexx
/
menu_evaluatecolumn.edge
< prev
next >
Wrap
Text File
|
1994-11-17
|
718b
|
32 lines
/*
** $VER: Menu_EvaluateColumn.edge 1.0 (Tuesday 23-Aug-94 11:24:12)
**
** Copy, evaluate/total the lines and put the result into local paste
**
** Written by Inovatronics
*/
options results
value=0
/* copy the current block into the result buffer */
copy resultbuff
if rc==0 then do
/* remember the results */
data=translate(result,' 'd2c(10),d2c(10)' ')
/* loop thru and accumulate the results */
do cnt=1 to words(data)
expr='expr='compress(translate(word(data,cnt),' 'd2c(10),d2c(10)' '))
interpret expr
value=value+expr
end
/* if there were no errors then the result in the local paste buffer*/
if rc==0 then do
'putenvvar fe_smallclip "'value'"'
'putenvvar fe_smallcliptype 0'
end
end